how to implement bubble sort in c